package com.keta.foundation.dao;

import java.util.List;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import com.keta.foundation.entity.Module;
import com.keta.foundation.entity.Organization;

public interface OrganizationDAO extends JpaRepository<Organization, Long>, JpaSpecificationExecutor<Organization> {

	Page<Organization> findByParentId(Long id, Pageable pageRequest);

	List<Organization> findByParentId(Long id);

}
